package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 地区参数
 * @author LikeAdmin
 */
@Data
@ApiModel("地区更新参数")
public class RegionUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Long id;

    @NotNull(message = "areaName参数缺失")
    @ApiModelProperty(value = "")
    private String areaName;

    @NotNull(message = "parentId参数缺失")
    @ApiModelProperty(value = "")
    private Long parentId;

    @NotNull(message = "level参数缺失")
    @ApiModelProperty(value = "")
    private Long level;

}
